import Home from '@/pages/Home'
import Mall from '@/pages/Mall'
import Mine from '@/pages/Mine'
import Product from '@/pages/Product'
import Cart from '@/pages/Cart'
import NotFound from '@/pages/NotFound'
import ClFooter from '@/components/ClFooter'

export default[{
  path: '/',
  redirect: '/home'
}, {
  path: '*',
  redirect: '/404'
}, {
  path: '/404',
  components: {
    default: NotFound
  }
}, {
  path: '/home',
  components: {
    default: Home,
    footer: ClFooter
  }
}, {
  path: '/mall',
  components: {
    default: Mall,
    footer: ClFooter
  }
}, {
  path: '/mine',
  components: {
    default: Mine,
    footer: ClFooter
  }
}, {
  path: '/product',
  components: {
    default: Product
  }
}, {
  path: '/cart',
  components: {
    default: Cart,
    footer: ClFooter
  }
}]
